package com.heima.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.heima.pojo.SkuClass;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_sku", autoResultMap = true)
public class SkuVo implements Serializable {
    private Long skuId;

    private String skuName;

    private String skuImage;

    private Integer price;

    private Integer classId;

    private Boolean isDiscount;

    private String unit;

    private String brandName;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private SkuClass skuClass;

    private static final long serialVersionUID = 1L;

}